<%--
  Created by IntelliJ IDEA.
  User: sengu
  Date: 2020/11/1
  Time: 1:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <title>注册界面</title>
    <script src="js/login.js"></script>
    <link rel="stylesheet" href="css/login.css" />
    <link rel="stylesheet" href="css/iconfont.css" />
    <style>
        #bigBox {
            height: 345px;
        }

        #bigBox .registerButton {
            width: 100px;
            margin-left: 160px;
        }
    </style>
</head>

<body>
<form action="register" method="post">
    <div id="bigBox">
        <h1>注册</h1>
        <div class="inputBox">
            <div class="inputText">
                <span class="iconfont icon-yonghu"></span>
                <input type="text" name="name" class="uname" placeholder="Username" />
                <span class='unameJudge'></span>
            </div>
            <div class="inputText">
                <span class="iconfont icon-yanjing"></span>
                <input type="password" name="password" class="pwd" placeholder="Password" />
                <span class='pwdJudge'></span>
            </div>
            <div class="inputText">
                <span class="iconfont icon-youjian"></span>
                <input type="email" name="mail" placeholder="email" />
            </div>
        </div>
        <input class="registerButton" type="submit" value="注册" />
    </div>
</form>
    <script>
        var btn = document.querySelector('.registerButton');
        btn.addEventListener('click', function () {
            window.location.href = 'login.jsp'
        })
    </script>
</body>

</html>
